package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Comment implements Serializable {
    private Integer coid;

    private String coname;

    private Integer colevel;

    private Integer copid;

    private String codesc;

    private String codesc1;

    private static final long serialVersionUID = 1L;

    public Integer getCoid() {
        return coid;
    }

    public void setCoid(Integer coid) {
        this.coid = coid;
    }

    public String getConame() {
        return coname;
    }

    public void setConame(String coname) {
        this.coname = coname;
    }

    public Integer getColevel() {
        return colevel;
    }

    public void setColevel(Integer colevel) {
        this.colevel = colevel;
    }

    public Integer getCopid() {
        return copid;
    }

    public void setCopid(Integer copid) {
        this.copid = copid;
    }

    public String getCodesc() {
        return codesc;
    }

    public void setCodesc(String codesc) {
        this.codesc = codesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Comment other = (Comment) that;
        return (this.getCoid() == null ? other.getCoid() == null : this.getCoid().equals(other.getCoid()))
            && (this.getConame() == null ? other.getConame() == null : this.getConame().equals(other.getConame()))
            && (this.getColevel() == null ? other.getColevel() == null : this.getColevel().equals(other.getColevel()))
            && (this.getCopid() == null ? other.getCopid() == null : this.getCopid().equals(other.getCopid()))
            && (this.getCodesc() == null ? other.getCodesc() == null : this.getCodesc().equals(other.getCodesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCoid() == null) ? 0 : getCoid().hashCode());
        result = prime * result + ((getConame() == null) ? 0 : getConame().hashCode());
        result = prime * result + ((getColevel() == null) ? 0 : getColevel().hashCode());
        result = prime * result + ((getCopid() == null) ? 0 : getCopid().hashCode());
        result = prime * result + ((getCodesc() == null) ? 0 : getCodesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coid=").append(coid);
        sb.append(", coname=").append(coname);
        sb.append(", colevel=").append(colevel);
        sb.append(", copid=").append(copid);
        sb.append(", codesc=").append(codesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}